//
//  PostsListViewController.m
//  GLGW_Shoping
//
//  Created by whx on 2018/12/4.
//  Copyright © 2018年 yang. All rights reserved.
//

#import "PostsListViewController.h"

@interface PostsListViewController ()
@property (nonatomic, strong) PostListViewModel *postModel;

@end

@implementation PostsListViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.title = @"我的帖子";
    if (!self.postType) {
        self.postType = PostType_LikePage;
    }
    self.postModel = [[PostListViewModel alloc] initWithViewToViewModel:self.groupedTableView theSuperView:self.view];
    self.postModel.postType = self.postType;
    [self addNavigationItemWithTitles:@[@"编辑"] isLeft:NO target:self action:@selector(rightAction:) tags:@[@232] theButTitColor:kColor_Rule_Yellow titFont:SYSTEMFONT(15)];
}

- (void)rightAction:(UIButton *)sender
{
    [self.postModel setEdit:sender];
}

@end
